<template>
  <div class="my-center-grid">
    <el-divider />
    <el-button @click="$router.push('/')">回到首页</el-button>
    <el-divider />
    <div>ref数据：{{ data }} ； 全局数据：{{ baseStore.HelloWord }}</div>
    <el-divider />
    <div>
      <p class="my-center-text">搜索组件：</p>
      <my-search></my-search>
    </div>
    <el-divider />
    <div>
      <el-button @click="$router.push('/error/404')">404页面</el-button>
    </div>
    <el-divider />
        <div>
      <el-button @click="$router.push('/error/401')">401页面</el-button>
    </div>
    <el-divider />
  </div>
</template>

<script setup>
import { useBaseStore } from '@/store/baseStore'
const data = ref('Hello World')
const baseStore = useBaseStore()
onMounted(() => {
  // TestMethod()
})
</script>

<style scoped></style>
